﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using System.ServiceModel;

namespace SAServices.Model
{
    [DataContract]
    public class ParameterValueInfo
    {
        [DataMember]
        public Guid ID { get; set; }
        [DataMember]
        public string Value { get; set; }
    }

    [DataContract]
    [Serializable]
    public class ParameterInfo
    {
        public ParameterInfo()
        {
            ID = Guid.NewGuid();
            Tag = String.Empty;
            DisplayName = String.Empty;
            RefKey = String.Empty;
            ProRefKey = String.Empty;
            Unit = String.Empty;
            Tag = String.Empty;
        }

        [DataMember]
        public Guid ID { get; set; }

        [DataMember]
        public Guid FamilyID { get; set; }

        [DataMember]
        public string Name { get; set; }

        [DataMember]
        public string DisplayName { get; set; }

        [DataMember]
        public string RefKey { get; set; }

        [DataMember]
        public string ProRefKey { get; set; }

        [DataMember]
        public string Unit { get; set; }

        [DataMember]
        public string Value { get; set; }

        [DataMember(IsRequired = true)]
        public bool IsKey { get; set; }

        [DataMember(IsRequired = true)]
        public bool IsDriver { get; set; }

        [DataMember(IsRequired = true)]
        public bool IsCustom { get; set; }

        [DataMember]
        public string Tag { get; set; }

        [DataMember(IsRequired = true)]
        public int Idx { get; set; }
    }
}
